package com.fruit.auth.service;

import java.io.Serializable;
import java.util.List;

import com.fruit.auth.model.Role;
import com.fruit.auth.model.User;
import com.fruit.auth.model.UserRole;
import com.fruit.service.BaseService;

public interface UserService extends BaseService<User>
{
	public User login(String username,String password);
	public boolean checkUsername(String username);
	public void saveUser(User user);
	public void updateUserRoles(User user,List<Serializable> roleIds);
	public void saveUserRoles(User user,List<Serializable> roleIds);
	public void saveUserRole(UserRole userRole);
	public void authUserPrivileges(User user);
	public void deleteUsers(String userIdsStr);
	public List<Role> findUserRoles(User user);
}
